<?php include_once './application/views/sys_admin/common/header.php';  ?>
<div class=" definewidth m20">
		<form  action="" method="get" class="form-inline definewidth m20">
			 <button type="button" class="btn btn-success"  onclick="href('/sys_admin/forum/add_view/');" >发帖</button>
	  	</form>
		<table class="table table-bordered table-hover definewidth m10">
			 <thead>
			    <tr>
			      	<th><strong>序号</strong></th>
					<th><strong>主题</strong></th>
					<th><strong>标题</strong></th>
					<th><strong>帖子状态</strong></th>
					<th><strong>发帖时间</strong></th>
					<th><strong>是否推荐</strong></th>
					<th><strong>是否屏蔽</strong></th>
					<th><strong>操作</strong></th>
			    </tr>
			   </thead>
			 <?php foreach($forum_list as $key=>$forum){?>
			  <tr id="row_<?php echo $forum['id'];?>">
				<td><?php echo $forum['id'];?></td>
				<td><?php echo $forum_theme[$forum['tid']];?></td>
				<td><a href="/sys_admin/forum/view/<?php echo $forum['id'];?>" ><?php echo $forum['subject'];?></a></td>
				<td><?php echo $forum_status[$forum['fstatus']];?></td>
				<td><?php echo date('Y-m-d H:i:s',$forum['add_time']);?></td>
				<td><a href="javascript:;" onclick="forumFirst(<?php echo $forum['id'];?>);"><?php echo $forum_shield[$forum['first']];?></a></td>
				<td><a href="javascript:;" onclick="forumShield(<?php echo $forum['id'];?>);"><?php echo $forum_shield[$forum['is_shield']];?></a></td>
				
				<td>
				<a href="/sys_admin/forum/view/<?php echo $forum['id'];?>" >详情</a>
				<?php if($forum['fstatus'] ==0 ){?>
				<a href="/sys_admin/forum/edit_view/<?php echo $forum['id'];?>" >编辑</a>
				<?php }?>
				</td>
			  </tr>
			  <?php }?>	
			  	<tr>
			  	<td colspan="12"  class="invbd_page"><?php echo $this->pagination->create_links();?></td>
			  	</tr>
		</table>
</div>
<div id="dialog" title="系统提示" style="display:none"><p id="msg" style="text-align:center"></p></div>
